
<template>

  <div class="top">
    <div class="content">
      <div class="left"  @click="goHome">
        <img src="../../assets/images/logo1.png" alt="">
        <p>万医疗 统一预约挂号平台</p>
      </div>

      <div class="right">
        <p class="help">帮助中心</p>
        <p class="login">登录/注册</p>
      </div>
    </div>
  </div>
</template>


<script setup lang="ts">

//引入路由
import {useRouter} from "vue-router";
//创建路由对象
let $router=useRouter();

const goHome=()=>{
  //点击跳转到首页
  $router.push({path:'/home'})

}

</script>


<style scoped lang="scss">

.top{
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: center;
  .content{

    width: 1200px;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-between;

    .left{
      display: flex;
      justify-content: center;
      align-items: center;
     img{
       width: 50px;
       height: 50px;
       margin-right: 10px;
     }
      p{
        font-size: 20px;
        color: #55a6fe;
      }

    }

    .right{
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      .help{
        margin-right: 10px;
      }
    }

  }
}


</style>
